aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/src SRC_DEF)
aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/src/netServer SRC_CAN)
add_library(component STATIC ${SRC_DEF} ${SRC_CAN})
find_package(yaml-cpp REQUIRED)

target_include_directories(component PRIVATE ./include ${YAML_CPP_INCLUDE_DIR})
target_link_directories(component PRIVATE ${YAML_CPP_LIBRARIES})
target_link_libraries(component yaml-cpp pthread)